﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using YouTravel.DomainModels;
using Framework.IOC;

namespace YouTravel.DomainService.Test
{
    [TestClass]
    public class TestUserService:TestBase
    {
        IUserService userService;
        public User CurrentUser { get; set; }
        public TestUserService()
        {
            this.userService = ServiceLocator.Instance.GetService<IUserService>();
            //CurrentUser = userService.Login("admin", "14e1b600b1fd579f47433b88e8d85291");
        }
        [TestMethod]
        public void TestUpdate()
        {
            User user = new User();
            user.ID = 2;
            user.Name = "修改";
            //userService.Update(user);
        }
    }
}
